<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<body>

<script language="javascript" type="text/javascript">
		function sumbimOnce(){
			if($("#content").val() == "" ){
				alert("内容不能为空！ ");
				return;
			}
			$("#form1").submit();
		}
</script>

<ul class="breadcrumb">
  <li><a href="./dzroom.do?status=0">当前房间 </a> <span class="divider">/</span> </li>
  <li><a href="./dzroom.do?status=1">黑名单房间</a> </li>
</ul>

<form id="form1" class="form-horizontal" action="dzroom.do" method="post">
	<div class="control-group">
		<label class="control-label"for="interval">房间ID:</label>
		<div class="controls">
		  <input type="text" class="input-medium" row="4" name="roomId" id="roomId"/>
		  <button type="submit" class="btn control"> 查询  </button>
		</div>
	</div>
</form>

<table class="table table-bordered">
  <thead>
    <tr>
      <th width="10%">房间Id</th>
      <th width="25%">房间名称</th>
      <th width="20%">房间主管</th>
      <th width="20%">操作</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="room" items="${room}">
    <tr>
     <td>${room.roomId}</td>
   	  <td>${room.name}</td>
   	  <td><tags:user id="${room.playerId}"></tags:user></td>
      <td><a href="blackRoom.do?roomId=${room.roomId}&status=1"> 加入黑名单  </a> </td>	
    </tr>
  </c:forEach>
  </tbody>
</table>
<tags:page1 page="${page}" pageSize="${pageSize }" total="${total }" url="dzroom.do?page="/>
</body>
</html>